#!/bin/sh

if (( $# == 0 ))
then
	echo "Usage: $0 <application>"
	exit
fi
cd `dirname $1`
APP=`basename $1`
if [ -f gtktest.suite ]
then
	TOTAL=`grep -c "^=" gtktest.suite`
	for ((I=0; $I<=$TOTAL; I++ ))
	do
		./$APP --case=$I
		echo
	done
else
	echo "No gtktest.suite file present"
fi
